<div id="sidebar-border">

  <div id="rss_border">
    <div class="rss_border">
      <div id="rss_wrap">
	<div class="rss_wrap">
	  <a class="rss rss_text" href="/feeds/latest/" rel="bookmark" title="RSS Feed">RSS Feed</a>
	</div>
      </div>
    </div>
  </div>

  <div id="sidebar">

  <div class="widget">
    <h3>Categories</h3>
    <ul>
      {% for category in category_list %}
        <li><a href="/category/{{ category.slug }}/">{{ category.name }} ({{ category.count }})</a></li>
      {% endfor %}
    </ul>
  </div>

  <div class="widget">
    <h3>Recent articles</h3>
    <ul>
      {% for article in recent_articles %}
        <li><a href="/article/{{ article.slug }}/">
            {{ article.title }}</a></li>
      {% endfor %}
    </ul>
  </div>

  <div class="widget">
    <h3>Archives by month</h3>
    <ul>
      {% for archive in archive_list %}
      <li><a href="/archive/{{ archive.year }}/{{ archive.month }}/">{{ archive }} ({{ archive.count }})</a></li>
      {% endfor %}
    </ul>
  </div>

  <div class="widget">
    <h3>Meta</h3>
    <ul>
      {% if user.is_authenticated %}
      <li><a href="/admin/">Admin</a></li>
      <li><a href="/reg/logout/">Logout</a></li>
      {% else %}
      <li><a href="/reg/login/">Login</a></li>
      {% endif %}
    </ul>
  </div>

  </div> <!-- end side bar -->
</div>   <!-- end sidebar-border -->
